projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f161146
)
(w32_wnd_proc): Ignore middle and extra button events if a menu is already
author
Eli Zaretskii
<eliz@gnu.org>
Sat, 11 Mar 2006 16:31:39 +0000
(16:31 +0000)
committer
Eli Zaretskii
<eliz@gnu.org>
Sat, 11 Mar 2006 16:31:39 +0000
(16:31 +0000)
active (the menubar_active flag is on).
src/w32fns.c
patch
|
blob
|
history
diff --git
a/src/w32fns.c
b/src/w32fns.c
index 34450fd5219d3a8c06b81f19911b6c601e9403e8..c116c51603b628ca192e275022ee238957c6f523 100644
(file)
--- a/
src/w32fns.c
+++ b/
src/w32fns.c
@@
-3250,6
+3250,11
@@
w32_wnd_proc (hwnd, msg, wParam, lParam)
BOOL up;
int button;
+ /* Ignore middle and extra buttons as long as the menu is active. */
+ f = x_window_to_frame (dpyinfo, hwnd);
+ if (f && f->output_data.w32->menubar_active)
+ return 0;
+
if (parse_button (msg, HIWORD (wParam), &button, &up))
{
if (up) ReleaseCapture ();